﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Dcm.ConfigMapAttributes;

namespace Dcm.Tests.ConfigMapAttributes
{
    [TestClass]
    public class CallingTypeFullnameRegExTests
    {
        [TestInitialize()]
        public void Startup()
        {
            Debug.WriteLine(string.Join(",", CallingTypeFullnameRegEx.GetCallingTypesFullNames()));
        }

        [TestMethod]
        public void CallingTypeFullnameRegExHappyPath()
        {
            const string Expected = "Success";
            var actual = DynamicConfigurationManager.DynamicConfigurationManager.AppSettings["CallingTypeFullnameRegExHappyPath"];
            if (Expected != actual)
            {
                Assert.Inconclusive(Utilities.UnreliableTest);
            }
            else
                Assert.AreEqual(Expected, actual);
        }
    }
}
